package test;

import com.coin.liu.Mapper.teacherOtherDataMapper;
import com.coin.liu.pojo.OtherTeacherData;
import com.coin.liu.Service.teacherOtherDataService;
import com.coin.liu.TeacherserviceDataApp8085;
import com.lhf.springcloud.DAO.StudentCompleteDataMapper;
import com.lhf.springcloud.Entity.StudentCompleteData;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = TeacherserviceDataApp8085.class)
public class test {

    @Resource
    StudentCompleteDataMapper studentCompleteDataMapper;
    @Resource
    teacherOtherDataService teacherOtherDataService;

    @Resource
    teacherOtherDataMapper  teacherOtherDataMapper;
@Test
    public  void insert() {

    OtherTeacherData otherTeacherData = new OtherTeacherData();


    for (int i = 1; i <= 1000; i++) {


        otherTeacherData.setDoubleDivision("双师");
        otherTeacherData.setDutyStatus("科研");
        otherTeacherData.setIdCard("61108977732" + i);
        otherTeacherData.setInstructor("否");
        otherTeacherData.setInstructorClass("无");
        otherTeacherData.setOccupationNature("校内专任教师");
        otherTeacherData.setProfessionalLeader("是");
        otherTeacherData.setProfessionalTitle("高级");
        otherTeacherData.setRetire("否");
        otherTeacherData.setTeacherName("张三" + i);
        otherTeacherData.setTeacherTitle("副教授");
        otherTeacherData.setProfessionalName("通信");
        String uuid = teacherOtherDataService.findUUID();
        otherTeacherData.setId(uuid);
        teacherOtherDataService.addthotherdata(otherTeacherData);

    }
    System.out.println("好了");
}



}
